<?php

$section = 'technology';
$type = Application::TYPE_TECHNOLOGY;

$id = Request::getIntNumber('id');
$backlink = Session::getBackLink('technology');
$currentlink = APPLICATION_URL . "/technology/delete/?id=". $id;

$app = new Application();
if(!$app->get($id) || $app->TYPE != $type)
	redirect($backlink);

if ($app->deletable($app->ID)){
	$app->delete();
}

redirect($backlink);